//
//  MyDocument.h
//  Book Editor
//
//  Created by Chris Karr on 6/20/08.
//  Copyright Northwestern University 2008 . All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "BookManagedObject.h"

@interface BookDocument : NSPersistentDocument 
{
	BookManagedObject * book;
	
	IBOutlet NSTextField * published;
	IBOutlet NSTextField * started;
	IBOutlet NSTextField * finished;
	
	IBOutlet NSTextField * contributorsLabel;
	IBOutlet NSTextField * genresLabel;
	IBOutlet NSTextField * keywordsLabel;
	IBOutlet NSTextField * statusLabel;

	IBOutlet NSTextField * contributors;
	IBOutlet NSTextField * genres;
	IBOutlet NSTextField * keywords;
	IBOutlet NSTextField * status;

	IBOutlet NSBox * coverBox;

	IBOutlet NSBox * firstLine;

	IBOutlet NSTabView * tabs;
	
	NSMutableDictionary * fileDictionary;
}

@property(retain) BookManagedObject * book;
@property(retain) NSTextField * published;
@property(retain) NSTextField * started;
@property(retain) NSTextField * finished;

@property(retain) NSTextField * contributorsLabel;
@property(retain) NSTextField * genresLabel;
@property(retain) NSTextField * keywordsLabel;
@property(retain) NSTextField * statusLabel;

@property(retain) NSTextField * contributors;
@property(retain) NSTextField * genres;
@property(retain) NSTextField * keywords;
@property(retain) NSTextField * status;

@property(retain) NSBox * coverBox;
@property(retain) NSBox * firstLine;

@property(retain) NSTabView * tabs;
@property(retain) NSMutableDictionary * fileDictionary;

- (NSString *) addFile:(NSString *) path;
- (BOOL) removeFile:(NSString *) path;
- (NSString *) pathForFile:(NSString *) file;

@end
